<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition template="../Templates/templateLeft.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui" 
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets">

    <ui:define name="content">      

        <center>

            <p:panel header="Seleccionar mascota">
                <h:panelGrid columns="1" cellpadding="5">

                    <h:form id="formSM">

                        <p:fieldset legend="Login">
                            <h:panelGrid columns="3" cellpadding="5">

                                <h:outputText value="Cedula: *" />
                                <p:inputText value="#{selectMascotaBean.cliente.cedula}"/>
                                <p:commandButton actionListener="#{selectMascotaBean.findClient()}" value="Buscar" />

                                <h:outputText value="Nombre:"/>
                                <p:inputText value="${selectMascotaBean.cliente.nombre}"/>
                                <h:outputText value="" />

                                <h:outputText value="Apellido:"/>
                                <p:inputText value="${selectMascotaBean.cliente.apellido}" />
                                <h:outputText value="" />

                                <h:outputText value="Mascota:" /> 
                                <p:selectOneMenu value="#{selectMascotaBean.mascota}">
                                    <f:selectItem value="#{selectMascotaBean.cliente.mascotaList}" />
                                </p:selectOneMenu>

                            </h:panelGrid>
                        </p:fieldset>

                        <p:commandButton value="Entrar" >
                            <h:link value="ProgramarCita"></h:link>
                        </p:commandButton >

                    </h:form>
                </h:panelGrid> 
            </p:panel>


        </center>

    </ui:define>
</ui:composition>




